package com.liuceng.zen.pojo.domain;

import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;

@Data
public class RptFrontAdGroup extends BaseDomain {
  public static final Integer STATUS_RUN = 1;
  public static final Integer STATUS_STOP = 2;

  private Integer id;
  private Integer memberId;
  private Integer frontCampaignId;
  private String aname;
  private Integer budgetType;
  private Integer budget;
  private Date startAt;
  private Date endAt;
  private Date createdAt;
  private Date updatedAt;
  private Integer pv;
  private Integer pc;
  private BigDecimal cost;
  private String clickRate;
  private String avgCost;
  private String avgCostView;
  //
  private Integer crtSize;
  //
  private BigDecimal ctr;
  private BigDecimal costPerClick;
  private BigDecimal costPerView;

  //
  private String cname;
  private Long aid;
  private Integer status;
  private Integer bid;

  public RptFrontAdGroup() {}

  public RptFrontAdGroup(GdtAdGroup adGroup) {
    this.crtSize = adGroup.getCrtSize();
    this.endAt = adGroup.getEndAt();
    this.status = STATUS_RUN;
    this.bid = adGroup.getBid();
  }
}
